Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid using a (warnings) Library on this #7525

Merged
merged 6 commits into from
Aug 14, 2023
Merged

Conversation

JaroslavTulach
Copy link
Member

@JaroslavTulach JaroslavTulach commented Aug 9, 2023

Pull Request Description

While investigating behavior of

sbt:std-benchmarks> withDebug benchOnly --dumpGraphs -- Vector_Operations.Max_Stat

in IGV I realized there is a deep chain of nodes when reading an element of Vector related to work with warnings. There is an invocation of WarningsLibrary on this - that's probably unnecessary as we know how it is going to resolve. This PR skips such one level of indirection by directly delegating to this.storage.

However I haven't seen any effect of this change on peak performance. The library overhead seems to disappear. Anyway I wanted to bring this finding to your attention and perform independent measurement on our CI server.

Checklist

Please ensure that the following checklist has been satisfied before submitting the PR:

  • All code follows the
    Java,
  • All code has been tested:

@JaroslavTulach JaroslavTulach added the CI: No changelog needed Do not require a changelog entry for this PR. label Aug 9, 2023
@JaroslavTulach JaroslavTulach self-assigned this Aug 9, 2023
@JaroslavTulach JaroslavTulach added the CI: Keep up to date Automatically update this PR to the latest develop. label Aug 10, 2023
@JaroslavTulach JaroslavTulach added the CI: Ready to merge This PR is eligible for automatic merge label Aug 10, 2023
@JaroslavTulach JaroslavTulach removed the CI: Keep up to date Automatically update this PR to the latest develop. label Aug 11, 2023
@mergify mergify bot merged commit f1c8c0b into develop Aug 14, 2023
26 of 27 checks passed
@mergify mergify bot deleted the wip/jtulach/NoLibraryOnThis branch August 14, 2023 15:09
JaroslavTulach added a commit that referenced this pull request Aug 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI: No changelog needed Do not require a changelog entry for this PR. CI: Ready to merge This PR is eligible for automatic merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants